.data
array:
.int 526,36,2,369,56
len=.-array
.text
.global selection
selection:
     ldr x0,=array
     mov w8,len
     sub w9,w8,#4

     mov w1,#0
     mov w2,#0

lop1:add w2,w1,#4
     mov w3,w1
     add x3,x3,x0
lop2:ldr w5,[x3]
     mov w4,w2
     add x4,x4,x0
     ldr w6,[x4]

     cmp w5,w6
     ble  bac3
     str w5,[x4]
     str w6,[x3]

bac3:add w2,w2,#4
     cmp w2,w8
     blt lop2

     add w1,w1,#4
     cmp w1,w9
     blt lop1

     mov x0,123
     mov x8,93
     svc #0

